<template>
  <demoBlock title="基础用法" padding>
    <vcu-image width="100" height="100" :src="imageUrl" />
  </demoBlock>
</template>

<script>
import { defineComponent, getCurrentInstance, ref, computed } from "vue";

export default defineComponent({
  setup() {
    const { proxy } = getCurrentInstance();
    const imageUrl = computed(() => {
      return `${proxy.serverIp}/images/car.jpg`;
    });

    return { imageUrl };
  },
});
</script>
